package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.pojo.Menu;
import com.itheima.health.pojo.Permission;
import com.itheima.health.pojo.Role;

import java.util.List;

/**
 * @author ：lizimo
 * @date ：Created in 2020/1/2
 * @description ：
 * @version: 1.0
 */
public interface UserRoleService {




    PageResult pageQuery(QueryPageBean queryPageBean);

    Role findById(Integer id);

    void add(Role role, Integer[] permissionIds, Integer[] menuIds);

    List<Menu> findAllMenu();

    List<Menu> findMenuByRole(Integer id);

    void edit(Role role, Integer[] permissionIds, Integer[] menuIds);

    List<Permission> findPermissionByRole(Integer id);

    List<Menu> findMenuByRoleId(Integer id);

    List<Permission> findPermissionIdByRoleId(Integer id);

    void delete(Integer id);
}
